# -*- Mode: makefile -*-
# Derived from GAlib by Matthew Wall
# Copyright (c) 1994-1996 Massachusetts Institute of Technology
# Copyright (c) 1996-2005 Matthew Wall
# -----------------------------------------------------------------------------

include makevarsNotHPC
include makefile.sources

INC_DIRS= -I..

.SUFFIXES: .cpp
.cpp.o:
	$(CXX) $(CXXFLAGS) $(INC_DIRS) -c $<

$(LIB): $(OBJS) 
	$(PRELINK)
	$(AR) $(LIB) $?
	$(RANLIB) $(LIB)
	echo "$(CXX) $(CXXFLAGS)" > BUILD
	@echo $(LIB) is now up-to-date
.cpp.a:;

clean:
	$(RM) $(LIB) BUILD
	$(RM) *.o 

install:: $(LIB)
	$(INSTALL) $(LIB) $(LIB_DEST_DIR)
	$(RM) $(HDR_DEST_DIR)/ga; $(MKDIR) $(HDR_DEST_DIR)/ga
	$(CP) $(HDRS) $(TMPL_SRCS) ../VERSION BUILD $(HDR_DEST_DIR)/ga

uninstall:
	$(RM) $(LIB_DEST_DIR)/$(LIB)
	$(RM) $(HDR_DEST_DIR)/ga

depend:
	$(MKDEPEND) $(INC_DIRS) $(SRCS)

# DO NOT DELETE THIS LINE -- make depend depends on it.

GAGenome.o: GAGenome.h /usr/include/assert.h /usr/include/features.h
GAGenome.o: /usr/include/sys/cdefs.h /usr/include/bits/wordsize.h
GAGenome.o: /usr/include/gnu/stubs.h /usr/include/gnu/stubs-64.h
GAGenome.o: ../galite/garandom.h /usr/include/stdlib.h
GAGenome.o: /usr/include/sys/types.h /usr/include/bits/types.h
GAGenome.o: /usr/include/bits/typesizes.h /usr/include/time.h
GAGenome.o: /usr/include/endian.h /usr/include/bits/endian.h
GAGenome.o: /usr/include/sys/select.h /usr/include/bits/select.h
GAGenome.o: /usr/include/bits/sigset.h /usr/include/bits/time.h
GAGenome.o: /usr/include/sys/sysmacros.h /usr/include/bits/pthreadtypes.h
GAGenome.o: /usr/include/alloca.h
GAPopulation.o: GAPopulation.h ../galite/GAGenome.h /usr/include/assert.h
GAPopulation.o: /usr/include/features.h /usr/include/sys/cdefs.h
GAPopulation.o: /usr/include/bits/wordsize.h /usr/include/gnu/stubs.h
GAPopulation.o: /usr/include/gnu/stubs-64.h ../galite/garandom.h
GAPopulation.o: /usr/include/stdlib.h /usr/include/sys/types.h
GAPopulation.o: /usr/include/bits/types.h /usr/include/bits/typesizes.h
GAPopulation.o: /usr/include/time.h /usr/include/endian.h
GAPopulation.o: /usr/include/bits/endian.h /usr/include/sys/select.h
GAPopulation.o: /usr/include/bits/select.h /usr/include/bits/sigset.h
GAPopulation.o: /usr/include/bits/time.h /usr/include/sys/sysmacros.h
GAPopulation.o: /usr/include/bits/pthreadtypes.h /usr/include/alloca.h
GASelector.o: GASelector.h /usr/include/string.h /usr/include/features.h
GASelector.o: /usr/include/sys/cdefs.h /usr/include/bits/wordsize.h
GASelector.o: /usr/include/gnu/stubs.h /usr/include/gnu/stubs-64.h
GASelector.o: ../galite/GAGenome.h /usr/include/assert.h ../galite/garandom.h
GASelector.o: /usr/include/stdlib.h /usr/include/sys/types.h
GASelector.o: /usr/include/bits/types.h /usr/include/bits/typesizes.h
GASelector.o: /usr/include/time.h /usr/include/endian.h
GASelector.o: /usr/include/bits/endian.h /usr/include/sys/select.h
GASelector.o: /usr/include/bits/select.h /usr/include/bits/sigset.h
GASelector.o: /usr/include/bits/time.h /usr/include/sys/sysmacros.h
GASelector.o: /usr/include/bits/pthreadtypes.h /usr/include/alloca.h
GASelector.o: ../galite/GAPopulation.h
